<template>
  <div class="goback" @click="goBack">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "GoBack",
  methods:{
    goBack(){
      this.$router.back(-1);
      this.$bus.$emit('detail')
    }
  }
};
</script>

<style lang="less" scoped>
.goback{
  width: 25px;
  
  
  img{
    width: 100%;
    
  }
}
</style>